import request from '@/utils/request'



/**
 * 获取首页轮播图
 */
export function getHomeImg(){
  return request({
    url:'/forums/getHomeCarouselList',
    method:'GET'
  })
}

/**
 * 获取校园资讯
 */
export function getInfomation(){
  return request({
    url:'/forums/getHomeNews',
    method:'GET'
  })
}

/**
 * 获取前十论坛
 */
export function getTopPosts(){
  return request({
    url:'talks/list?hot=0&size=5',
    method:'GET'
  })
}

export default {
  getHomeImg,
  getInfomation,
  getTopPosts

}
